package com.wwwarehouse.common.custom_widget.share;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author ：minifly
 * date: 2017/8/18
 * time: 09:58
 * desc: 分享总类
 */
public class ShareContent implements Parcelable{
    //qq与微信的内容通用字段
    private String title = "",content = "",url = "",imageUrl = "";
    //拨打电话与发短信，拷贝功能内容区。
    private String phoneNum = "" , message = "", copyContent = "";
    //分享人的信息  名字 与 头像地址
    private String shareDestname = "",shareDestImageurl = "";

    public String getShareDestImageurl() {
        return shareDestImageurl;
    }

    public void setShareDestImageurl(String shareDestImageurl) {
        this.shareDestImageurl = shareDestImageurl;
    }

    public String getShareDestname() {

        return shareDestname;
    }

    public void setShareDestname(String shareDestname) {
        this.shareDestname = shareDestname;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCopyContent() {
        return copyContent;
    }

    public void setCopyContent(String copyContent) {
        this.copyContent = copyContent;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.content);
        dest.writeString(this.url);
        dest.writeString(this.imageUrl);
        dest.writeString(this.phoneNum);
        dest.writeString(this.message);
        dest.writeString(this.copyContent);
        dest.writeString(this.shareDestname);
        dest.writeString(this.shareDestImageurl);
    }

    public ShareContent() {
    }

    protected ShareContent(Parcel in) {
        this.title = in.readString();
        this.content = in.readString();
        this.url = in.readString();
        this.imageUrl = in.readString();
        this.phoneNum = in.readString();
        this.message = in.readString();
        this.copyContent = in.readString();
        this.shareDestname = in.readString();
        this.shareDestImageurl = in.readString();
    }

    public static final Creator<ShareContent> CREATOR = new Creator<ShareContent>() {
        @Override
        public ShareContent createFromParcel(Parcel source) {
            return new ShareContent(source);
        }

        @Override
        public ShareContent[] newArray(int size) {
            return new ShareContent[size];
        }
    };
}
